var app = new APP();

app.nav();
app.auth();

var _actualHashValue = '';
!function() {
	if ('onhashchange' in window) {
		$(window).bind('hashchange', function(e) {
			app.nav();
		});
	} else {
		_actualHashValue = window.location.hash;
		setInterval(function() {
			if (_actualHashValue != window.location.hash) {
				_actualHashValue = window.location.hash;
				app.nav();
			}
		}, 500);
	}
}();